package com.hlkj.pay.app.merchant.ext.impl.heepay.util;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.util.HashMap;
import java.util.Map;

/**
 * @author HlpayTeam
 * @date 2025/01/07 9:33
 */
public class HeePayParamUtils {

    public static Map<String,String> params(String response){
        String[] split = response.split("\\|");
        Map<String, String> paramsMap = new HashMap<>();
        for (String s : split) {
            String[] split1 = s.split("=");
            if (split1.length > 1) {
                paramsMap.put(split1[0], split1[1]);
            }
            else {
                paramsMap.put(split1[0], "");
            }
        }
        return paramsMap;
    }
}
